package com.swust.dao;

public class Book {
    Long ID;             //书籍ID

    String bookName;    //书籍名字

    String bookClass;   //书籍分类

    int price;          //书籍价格

    String bookInfo;    // 书籍描述

    @Override
    public String toString() {
        return "Book{" +
                "ID=" + ID +
                ", bookName='" + bookName + '\'' +
                ", bookClass='" + bookClass + '\'' +
                ", price=" + price +
                ", bookInfo='" + bookInfo + '\'' +
                '}';
    }

    public Book(Long ID, String bookName, String bookClass, int price, String bookInfo) {
        this.ID = ID;
        this.bookName = bookName;
        this.bookClass = bookClass;
        this.price = price;
        this.bookInfo = bookInfo;
    }

    public Long getID() {

        return ID;
    }

    public void setID(Long ID) {
        this.ID = ID;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getBookClass() {
        return bookClass;
    }

    public void setBookClass(String bookClass) {
        this.bookClass = bookClass;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getBookInfo() {
        return bookInfo;
    }

    public void setBookInfo(String bookInfo) {
        this.bookInfo = bookInfo;
    }
}
